home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / demo_mobileSafe / demomobileSafe.jar / MobileSafeMidlet.class (.txt)
Encoding:
Java Class File  |  2002-07-31  |  1.5 KB  |  43 lines

  1. import a.a.b.a.c;
  2. import javax.microedition.lcdui.Command;
  3. import javax.microedition.lcdui.CommandListener;
  4. import javax.microedition.lcdui.Display;
  5. import javax.microedition.lcdui.Displayable;
  6. import javax.microedition.lcdui.Form;
  7. import javax.microedition.midlet.MIDlet;
  8.  
  9. public final class MobileSafeMidlet extends MIDlet implements CommandListener {
  10.    // $FF: renamed from: a a.a.b.a.c
  11.    private c field_0 = new c(this, Display.getDisplay(this));
  12.  
  13.    protected void pauseApp() {
  14.    }
  15.  
  16.    protected void destroyApp(boolean var1) {
  17.    }
  18.  
  19.    protected void startApp() {
  20.       try {
  21.          this.field_0.do("Graphic");
  22.       } catch (Exception var4) {
  23.          Form var2 = new Form("Unable to Start");
  24.          ((Displayable)var2).setCommandListener(this);
  25.          ((Displayable)var2).addCommand(new Command("Exit", 7, 1));
  26.          Display var3 = Display.getDisplay(this);
  27.          var3.setCurrent(var2);
  28.       }
  29.  
  30.    }
  31.  
  32.    public void commandAction(Command var1, Displayable var2) {
  33.       if (var1.getCommandType() == 7) {
  34.          this.field_0.byte();
  35.          this.destroyApp(false);
  36.          ((MIDlet)this).notifyDestroyed();
  37.       } else {
  38.          this.field_0.commandAction(var1, var2);
  39.       }
  40.  
  41.    }
  42. }
  43.